package cn.com.generaldata.os.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.sun.xml.internal.bind.CycleRecoverable;

public class BillboardIndustry implements java.io.Serializable, CycleRecoverable {

	private static final long serialVersionUID = -542591253071887815L;

	private String id;
	private User operator;
	private String billboardTitle;
	private String billboardContent;
	private String industryId;
	private byte dateType;
	private int offset;
	private String status;
	private Date lastReadTime;
	private int reportSum; // 催报中所有要上报的报表总和(报表类型对相应的企业*当前报表类型)
	private String users;
	private int userSum;

	private Set<BillboardIndustryReports> bIndustryReports = new HashSet<BillboardIndustryReports>();

	public BillboardIndustry() {
	}

	public BillboardIndustry(String id, User operator, String billboardTitle, String billboardContent,
			String industryId, byte dateType, int offset, String status, Date lastReadTime, int reportSum,
			String users, int userSum) {
		this.id = id;
		this.operator = operator;
		this.billboardTitle = billboardTitle;
		this.billboardContent = billboardContent;
		this.industryId = industryId;
		this.dateType = dateType;
		this.offset = offset;
		this.status = status;
		this.lastReadTime = lastReadTime;
		this.reportSum = reportSum;
		this.users = users;
		this.userSum = userSum;
	}

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		BillboardIndustry temp = new BillboardIndustry();
		temp.setId(id);
		return temp;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public User getOperator() {
		return operator;
	}

	public void setOperator(User operator) {
		this.operator = operator;
	}

	public String getBillboardTitle() {
		return billboardTitle;
	}

	public void setBillboardTitle(String billboardTitle) {
		this.billboardTitle = billboardTitle;
	}

	public String getBillboardContent() {
		return billboardContent;
	}

	public void setBillboardContent(String billboardContent) {
		this.billboardContent = billboardContent;
	}

	public byte getDateType() {
		return dateType;
	}

	public void setDateType(byte dateType) {
		this.dateType = dateType;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	public String getIndustryId() {
		return industryId;
	}

	public void setIndustryId(String industryId) {
		this.industryId = industryId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getLastReadTime() {
		return lastReadTime;
	}

	public void setLastReadTime(Date lastReadTime) {
		this.lastReadTime = lastReadTime;
	}

	public int getReportSum() {
		return reportSum;
	}

	public void setReportSum(int reportSum) {
		this.reportSum = reportSum;
	}

	public Set<BillboardIndustryReports> getbIndustryReports() {
		return bIndustryReports;
	}

	public void setbIndustryReports(Set<BillboardIndustryReports> bIndustryReports) {
		this.bIndustryReports = bIndustryReports;
	}

	public String getUsers() {
		return users;
	}

	public void setUsers(String users) {
		this.users = users;
	}

	public int getUserSum() {
		return userSum;
	}

	public void setUserSum(int userSum) {
		this.userSum = userSum;
	}

}
